package com.example.ymm.modules1.service.sys;

import com.example.ymm.base.BaseService;
import com.example.ymm.model.TableList;
import com.example.ymm.model.YmPageDto;
import com.example.ymm.modules1.entity.my.sys.SysApprovalSetting;
import com.example.ymm.modules1.query.sys.SysApprovalSettingQueryCriteria;
import com.example.ymm.modules1.service.dto.heng.ApproverUserList;

import java.util.List;

public interface SysApprovalSettingService extends BaseService<SysApprovalSetting> {


    TableList<SysApprovalSetting> list(SysApprovalSettingQueryCriteria criteria, YmPageDto ymPage);

    List<SysApprovalSetting> queryAll(SysApprovalSettingQueryCriteria criteria);


    SysApprovalSetting findByApprovalName(String approvalName);


    /**
     * 获取参与人员
     * @param userId
     * @return
     */
    ApproverUserList getApproverUserList(String approvalSettingId,String userId);

}
